﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Customer.Master" AutoEventWireup="true"
    CodeBehind="CustomerDownloadDocuments.aspx.cs" Inherits="EHTSaleManager.UICustomer.CustomerDownloadDocuments" %>

<%@ Register Src="~/UIAdmin/Control/PaggingControl.ascx" TagName="PaggingControl"
    TagPrefix="EHT" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h1>
        <asp:Label ID="lbCustomerDownloadDocument" runat="server" Text="Document"></asp:Label>
    </h1>
    <asp:Repeater ID="rpDocuments" runat="server" OnItemCommand="rpDocuments_ItemCommand"
        OnItemDataBound="rpDocuments_ItemDataBound">
        <HeaderTemplate>
            <table cellspacing="0" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                        <th class="actions download">
                            Download
                        </th>
                        <th>
                            Description
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td style="white-space: nowrap">
                    <asp:ImageButton ID="ibDownload" ImageUrl="" runat="server" Height="24" Width="24"
                        CommandArgument='<%#Eval("DocumentUrl") %>' CommandName="DownloadTxt" />
                    <asp:Label ID="lbDocumentUrl" runat="server" Visible="false" Text='<%#Eval("DocumentUrl") %>' />
                </td>
                <th>
                    <%#Eval("Description") %>
                </th>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
    <p>
        <EHT:PaggingControl ID="PaggingControl1" runat="server" PageURL="AdminRegions.aspx"
            PageSize="10" />
    </p>
</asp:Content>
